import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class RoomToolSettingItemWidget extends StatelessWidget {
  final VoidCallback onTap;
  final String title;
  final String value;
  const RoomToolSettingItemWidget({Key? key,required this.onTap,required this.title,required this.value}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Container(
          padding: const EdgeInsets.only(left: 24, right: 24),
          height: 52,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
            Text(
              title,
              style: const TextStyle(
                fontSize: 15,
                fontWeight: FontWeight.w500,
                color: Color(0xFF333333),
              ),
            ),
            Row(
                children: [
                Text(
                  value,
                  style: const TextStyle(
                    fontSize: 15,
                    color: Color(0xFF999999),
                    fontWeight: FontWeight.w500,
                  ),
                ),
                SizedBox(width: 19),
                  Image.asset(
                    "assets/images/ic_enter_mine_information.png",
                    width: 6,
                    height: 12,
                    fit: BoxFit.fill,
                  )
                ],
              )
            ],
          ),),
    );
  }
}
